package com.huayi.order;

import com.huayi.order.thymeleaf.PagingDialect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
public class OrderApplication {

//    public static void main(String[] args) {
//        SpringApplication.run(OrderApplication.class, args);
//    }
    public static void main(String[] args) {
    SpringApplication.run(OrderApplication.class, args);
}

    @Bean
    public PagingDialect paging() {
        return new PagingDialect();
    }
}
